import request from '@/utils/request'

// cartPop 购物车发起的axios请求

export const goodsCart = (msg)=>{
    request.defaults.headers.common['token'] = 'eyJqdGkiOiJSSml6RUI3clBIIiwiaWF0IjoxNjA0MzEwNDY2LCJjaGFubmVsIjoiMSJ9.PclnHqy_GTMjNjDmDN6Z-Ce15ClDophN9ao4pv_e_Hs';
    let url =`/api/rest/h5Goods/findGoodsList?classifyIds=${msg.classId}&currentpage=1&sortType=4&sortDirection=desc&goodsSelect=&goodsLowPrice=&goodsHighPrice=&userBrand=&size=&pageSize=`
    return request.get(url)
}

export const goodsCartPop = (msg)=>{
    request.defaults.headers.common['token'] = 'eyJqdGkiOiJSSml6RUI3clBIIiwiaWF0IjoxNjA0MzEwNDY2LCJjaGFubmVsIjoiMSJ9.PclnHqy_GTMjNjDmDN6Z-Ce15ClDophN9ao4pv_e_Hs';
    let url2 =`/api/rest/h5Goods/goodsDetail?goodsCode=${msg.goodsCode}`
    return request.get(url2)
}
